<script setup>
import { router } from '../../../router'

const goToUpLoadPageBtn = () => {
    router.push("/admin-upload/admin-upload-page")
}
const goToUpLoadPageVideoBtn = () => {
    router.push('/admin-upload/admin-upload-page-video')
}
const goToUpLoadPageMusicBtn = () => {
    router.push('/admin-upload/admin-upload-page-music')
}
</script>

<template>
    <div class="adminUploadAll">
        <div class="dialogBoxColor"></div>
        <div class="goToUpLoadPageBtn" @click="goToUpLoadPageBtn">
            <span>{{ "发布文章" }}</span>
        </div>
        <div class="goToUpLoadPageVideoBtn" @click="goToUpLoadPageVideoBtn">
            <span>{{ "发布视频" }}</span>
        </div>
        
        <div class="goToUpLoadPageMusicBtn" @click="goToUpLoadPageMusicBtn">
            <span>{{ "音频投稿" }}</span>
        </div>
        <div class="uploadDetailBox">
            <router-view></router-view>
        </div>
    </div>
</template>

<style scoped>
.adminUploadAll{
    position: absolute;
    left: 0;
    top: 0;
    width: 1872px;
    height: 100%;
}
.dialogBoxColor{
    width: 100%;
    height: 6%;
    background: linear-gradient(to right,rgb(2,80,160),rgb(250,0,0));
}
.masterBox{
    width: 100%;
    height: 94%;
}
.goToUpLoadPageBtn{
    position: absolute;
    left: 30px;
    top: 80px;
    width: 150px;
    height: 60px;
    background-color: red;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.goToUpLoadPageVideoBtn{
    position: absolute;
    left: 30px;
    top: 200px;
    width: 150px;
    height: 60px;
    background-color: rgb(0, 100, 200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.goToUpLoadPageBtn span{
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}
.goToUpLoadPageVideoBtn span{
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.goToUpLoadPageMusicBtn{
    position: absolute;
    left: 30px;
    top: 330px;
    width: 150px;
    height: 60px;
    background-color: rgb(100, 120, 250);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.goToUpLoadPageMusicBtn span{
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.uploadDetailBox{
    position: absolute;
    left: 230px;
    top: 80px;
    width: 85%;
    height: 91%;
    overflow-y: auto;
    border-radius: 5px;
    border: 1px solid rgba(200, 200, 200, .5);
}
</style>